package com.drcoffee.drcoffeemall.controller;

import com.drcoffee.drcoffeemall.entry.FirmAlter;
import com.drcoffee.drcoffeemall.service.FirmAlterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 企业变更申请
 *
 * @author ShiHao Zhou
 */
@RequestMapping("/firmAlter")
@RestController
public class FirmAlterController {
    @Autowired
    FirmAlterService firmAlterService;

    /*
     * 添加企业变更申请
     * */
    @PostMapping("/addFirmAlter")
    public Map<String, Object> addFirmAlter(@RequestBody FirmAlter firmAlter) {
        return firmAlterService.addFirmAlter(firmAlter);
    }
}
